package com.stone.compose.vm

import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class LoginViewModel @Inject constructor():BaseViewModel() {

    companion object{
        const val TAG = "LoginViewModel"
    }

    val uiState by mutableStateOf(LoginViewState())


    fun login(){

        Log.i(TAG, "login: ${uiState.username} / ${uiState.password}")

        if(uiState.username.isNullOrBlank()){

        }

        if("stone" == uiState.username && "abc123456" == uiState.password){

        }
    }


}

data class LoginViewState(
    var username: String = "",
    var password: String = "",
)